export const constantRouter =  [
    { path: '/login', component: () => import('@/views/login/LoginPage.vue') }, // 登录
  
    {
      path: '/',
      redirect: '/login',
    },

    {
      
      path: '/home',
      redirect: '/home/get',
      component: () => import('@/views/home/HomePage.vue'),
      name: 'home',
      children: [
        {
          path: '/home/get',
          redirect: '/home/get/params',
          component: () => import('@/views/home/get/index.vue'),
          children: [
            {
              path: '/home/get/params',
              component: ()=> import ('@/views/home/get/ParamsGet.vue')
            },
            {
              path: '/home/get/body',
              component: ()=> import ('@/views/home/get/BodyGet.vue')
            },
            //以下路由对应组件都还没有写
            {
              path: '/home/get/cookie',
              component: ()=> import ('@/views/home/get/CookieGet.vue')
            },
            {
              path: '/home/get/header',
              component: ()=> import ('@/views/home/get/HeaderGet.vue')
            },
            {
              path: '/home/get/auth',
              component: ()=> import ('@/views/home/get/AuthGet.vue')
            },
            {
              path: '/home/get/setting',
              component: ()=> import ('@/views/home/get/SettingGet.vue')
            },
          ]
        },
               {
          path: '/home/post',
          redirect: '/home/post/params',
          component: () => import('@/views/home/post/index.vue'),
          children:[
            {
              path: '/home/post/params',
              component: ()=> import ('@/views/home/post/ParamsPost.vue')
            },
            {
              path: '/home/post/body',
              component: ()=> import ('@/views/home/post/BodyPost.vue')
            },
            {
              path: '/home/post/cookie',
              component: ()=> import ('@/views/home/post/CookiePost.vue')
            },
            {
              path: '/home/post/header',
              component: ()=> import ('@/views/home/post/HeaderPost.vue')
            },
            {
              path: '/home/post/auth',
              component: ()=> import ('@/views/home/post/AuthPost.vue')
            },
            {
              path: '/home/post/setting',
              component: ()=> import ('@/views/home/post/SettingPost.vue')
            },
          ],
        },

        {
          path: '/home/put',
          redirect: '/home/put/params',
          component: () => import('@/views/home/put/index.vue'),
          children:[
            {
              path: '/home/put/params',
              component: ()=> import ('@/views/home/put/ParamsPut.vue')
            },
            {
              path: '/home/put/body',
              component: ()=> import ('@/views/home/put/BodyPut.vue')
            },
            {
              path: '/home/put/cookie',
              component: ()=> import ('@/views/home/put/CookiePut.vue')
            },
            {
              path: '/home/put/header',
              component: ()=> import ('@/views/home/put/HeaderPut.vue')
            },
            {
              path: '/home/put/auth',
              component: ()=> import ('@/views/home/put/AuthPut.vue')
            },
            {
              path: '/home/put/setting',
              component: ()=> import ('@/views/home/put/SettingPut.vue')
            },
          ],
        },
        {
          path: '/home/delete',
          redirect: '/home/delete/params',
          component: () => import('@/views/home/delete/index.vue'),
          children:[
            {
              path: '/home/delete/params',
              component: ()=> import ('@/views/home/delete/ParamsDelete.vue')
            },
            {
              path: '/home/delete/body',
              component: ()=> import ('@/views/home/delete/BodyDelete.vue')
            },
            {
              path: '/home/delete/cookie',
              component: ()=> import ('@/views/home/delete/CookieDelete.vue')
            },
            {
              path: '/home/delete/header',
              component: ()=> import ('@/views/home/delete/HeaderDelete.vue')
            },
            {
              path: '/home/delete/auth',
              component: ()=> import ('@/views/home/delete/AuthDelete.vue')
            },
            {
              path: '/home/delete/setting',
              component: ()=> import ('@/views/home/delete/SettingDelete.vue')
            },
          ],
        },
      ]
    },
    {
      path: '/404',
      component: () => import('@/views/404/index.vue'),
      name: '404'
    },
    {
      // 任意，其他都没匹配上
      path: '/:pathMatch(.*)*',
      redirect: '/404',
      name: 'any'
    }
  ]